package com.hp.ssmp.entity.dto;

import com.hp.ssmp.entity.TCart;

import java.math.BigDecimal;

public class TCartDto extends TCart {
    private String goodsname;
    private BigDecimal goodsprice;

    public TCartDto(String goodsname, BigDecimal goodsprice) {
        this.goodsname = goodsname;
        this.goodsprice = goodsprice;
    }

    public TCartDto() {
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public BigDecimal getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(BigDecimal goodsprice) {
        this.goodsprice = goodsprice;
    }

    @Override
    public String toString() {
        return "TCartDto{" +
                "goodsname='" + goodsname + '\'' +
                ", goodsprice=" + goodsprice +
                '}';
    }
}
